import request from '@/util/request'

export function insertCompanyDept(data) {
  return request({
    url: '/auth/company/dept/insert',
    method: 'post',
    data
  })
}

export function deleteCompanyDept(data) {
  return request({
    url: '/auth/company/dept/delete',
    method: 'post',
    data
  })
}

export function treeCompanyDept(data) {
  return request({
    url: '/auth/company/dept/tree',
    method: 'post',
    data
  })
}

export function getCompanyDept(data) {
  return request({
    url: '/auth/company/dept/get',
    method: 'post',
    data
  })
}

export function updateCompanyDept(data) {
  return request({
    url: '/auth/company/dept/update',
    method: 'post',
    data
  })
}

